﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Lookup.ascx.cs" Inherits="TCKQKL.FrontEnd.Web.Controls.Lookup" %>
<%@ Register Src="TradingResult.ascx" TagName="TradingResult" TagPrefix="uc1" %>
<link href="../styles/data.css" rel="stylesheet" type="text/css" />
<%@ Import Namespace="TCKQKL.FrontEnd.DataModel" %>
<%@ Import Namespace="TCKQKL.FrontEnd.Config" %>

<script src="../javascript/TCKQKL.FrontEnd.Web.CalendarPopup.js" type="text/javascript"></script>

<script src="../javascript/TCKQKL.FrontEnd.Web.Common.js" type="text/javascript"></script>

<table style="width: 100%;">
    <tr>
        <td style="vertical-align: top;">
            <div id="leftMenu">
                <table id="search" style="width: 150px; padding: 0px; margin: 0px; border-spacing: 0xp;">
                    <tr>
                        <td class="title" colspan="2">
                            Thời gian đặt lệnh?
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:RadioButtonList ID="ddlDate" runat="server" RepeatLayout="Flow">
                                <asp:ListItem Value="ALL">Tôi không nhớ</asp:ListItem>
                                <asp:ListItem Selected="True" Value="THISWEEK">Trong tuần</asp:ListItem>
                                <asp:ListItem Value="THISMONTH">Trong tháng</asp:ListItem>
                                <asp:ListItem Value="SPECIFIC">Ngày cụ thể</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span style="width: 40px;">Từ:</span>
                        </td>
                        <td>

                            <script type="text/javascript" language="JavaScript">
                           var cal = new CalendarPopup();
                            </script>

                            <asp:TextBox CssClass="textShort" Style="vertical-align: top; float: left;" ID="date1"
                                runat="server"></asp:TextBox>
                            <img style="vertical-align: top; float: left;" id="anchor1" onclick="cal.select(document.forms['aspnetForm'].ctl00_ContentPlaceHolder1_Lookup1_date1,'anchor1','MM/dd/yyyy'); return false;"
                                src="../Images/selectdate.gif" alt="select" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span style="width: 40px;">Đến:</span>
                        </td>
                        <td>
                            <asp:TextBox CssClass="textShort" Style="vertical-align: top; float: left;" ID="date2"
                                runat="server"></asp:TextBox>
                            <img style="vertical-align: top; float: left;" id="anchor2" onclick="cal.select(document.forms['aspnetForm'].ctl00_ContentPlaceHolder1_Lookup1_date2,'anchor2','MM/dd/yyyy'); return false;"
                                src="../Images/selectdate.gif" alt="select" />
                        </td>
                    </tr>
                    <tr>
                        <td class="title" onclick="showhide('orderParams','starthidden');" colspan="2">
                            Chi tiết lệnh »
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="orderParams" class="optionGroup">
                                <table>
                                    <tr>
                                        <td>
                                            Loại
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="lstOrderType" runat="server">
                                                <asp:ListItem Value="ALL">Tất cả</asp:ListItem>
                                                <asp:ListItem Value="PLACE">Lệnh mua/bán</asp:ListItem>
                                                <asp:ListItem Value="CANCEL">Lệnh huỷ</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Kiểu
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="lstOrderClass" runat="server">
                                                <asp:ListItem>Tất cả</asp:ListItem>
                                                <asp:ListItem Value="NORMAL">Thường - Giới hạn</asp:ListItem>
                                                <asp:ListItem Value="ATO">Thường - ATO</asp:ListItem>
                                                <asp:ListItem Value="ATC">Thường - ATC</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mua/bán
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="lstOrderSide" runat="server">
                                                <asp:ListItem Value="ALL">Tất cả</asp:ListItem>
                                                <asp:ListItem Value="BUY">Mua</asp:ListItem>
                                                <asp:ListItem Value="SELL">Bán</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            MCK
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSymbol" runat="server" CssClass="text"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Số hiệu
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOrderID" runat="server" CssClass="text"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="title" onclick="showhide('orderPrice','starthidden');" colspan="2">
                            Mức giá »
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="orderPrice" class="optionGroup">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:RadioButtonList ID="ddlOrderPrice" runat="server" RepeatLayout="Flow">
                                                <asp:ListItem Selected="True" Value="ALL">Tôi không nhớ</asp:ListItem>
                                                <asp:ListItem Value="SMALL">Nhỏ (&lt;30)</asp:ListItem>
                                                <asp:ListItem Value="MEDIUM">Trung bình (30-70)</asp:ListItem>
                                                <asp:ListItem Value="BIG">Lớn (&gt;=70)</asp:ListItem>
                                                <asp:ListItem Value="SPECIFIC">Cụ thế</asp:ListItem>
                                            </asp:RadioButtonList>
                                            <div style="clear: both; height: 0px;">
                                            </div>
                                            <asp:DropDownList ID="lstPriceConstrain" runat="server">
                                                <asp:ListItem Value="ATLEAST">Lớn hơn</asp:ListItem>
                                                <asp:ListItem Value="ATMOST">Nhỏ hơn</asp:ListItem>
                                                <asp:ListItem Value="EXACT">Chính xác</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:TextBox ID="txtPrice" runat="server" CssClass="textShort"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="title" onclick="showhide('orderQtty','starthidden');" colspan="2">
                            Khối lượng »
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="orderQtty" class="optionGroup">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:RadioButtonList ID="ddlOrderQtty" runat="server" RepeatLayout="Flow">
                                                <asp:ListItem Selected="True" Value="ALL">Tôi không nhớ</asp:ListItem>
                                                <asp:ListItem Value="SMALL">Nhỏ (&lt;=500)</asp:ListItem>
                                                <asp:ListItem Value="MEDIUM">Trung bình (500-2000)</asp:ListItem>
                                                <asp:ListItem Value="BIG">Lớn (&gt;=5000)</asp:ListItem>
                                                <asp:ListItem Value="SPECIFIC">Cụ thể</asp:ListItem>
                                            </asp:RadioButtonList>
                                            <div style="clear: both; height: 0px;">
                                            </div>
                                            <asp:DropDownList ID="lstQttyConstrain" runat="server">
                                                <asp:ListItem Value="ATLEAST">Lớn hơn</asp:ListItem>
                                                <asp:ListItem Value="ATMOST">Nhỏ hơn</asp:ListItem>
                                                <asp:ListItem Value="EXACT">Chính xác</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:TextBox ID="txtQtty" runat="server" CssClass="textShort"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="btnLogin" runat="server" Text="Tra cứu" CssClass="bttn" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblTextQuery" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
        <td id="middle" style="width: 100%; vertical-align: top;">
            <uc1:TradingResult ID="TradingResult1" runat="server" />
        </td>
    </tr>
</table>
